 /*********************************************
  * Copyright (c) 2009 ICBC.
  * All rights reserved.
  * Created on 2010-7-19 11:28:06
  * 
  * Contributors:
  *     ctp - initial implementation
  *********************************************/
 
 
 /**
 * 用户管理类.
 * 
 * <pre>
 *  用于用户管理，存放用户信息。
 * </pre>
 * 
 * @author kfzx-yuli1
 * 
 */

package com.icbc.ctpdemo.user;

import java.io.Serializable;
/**
 * <pre>
 * Modified by kfzx-chenhb @ 2015-7-10
 * 2015年7月版本，支持通过Jnos缓存来保存Session
 * </pre>
 */
public class UserBean implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id;//用户编号
	private String password;//用户密码
	private String branchId;//机构编号
	private String branchLevel;//机构层级
	private String regionId;//地区号
	private String netTerminal;//网络终端号
	private String status;//用户状态
	private String userLevel;//用户层级
	private String phoneNo;//电话号码
	private String email;//邮箱地址
	private String postcode;//邮政编码
	private String certType;//用户认证类型
	private String certNo;//用户认证编号
	private String freezeDate;//冻结用户日期
	private String failNum;//密码错误次数
	private String mobile;//用户手机
	private String lastModiTime;//修改时间
	private String lastModiUserId;//修改用户
	private String privilegeAll;//权限：全部机构
	private String privilegeSelf;//权限：本机机构
	private String privilegeOther;//权限：下属机构
	private String userCaregory;//用户类别
	private String name;//用户名

	private String description;//用户描述
	private String address;//地址
	private String branchName;//机构名
	private String userDefaultRole;//用户默认角色
	
	//配合安全改造 modify by kfzx-lvsx 20140908
	private String lstModPwdTime;//上次修改密码日期
	private String pwdIsReseted;//密码是否刚重置过的标志位
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getBranchId() {
		return branchId;
	}
	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}
	public String getBranchLevel() {
		return branchLevel;
	}
	public void setBranchLevel(String branchLevel) {
		this.branchLevel = branchLevel;
	}
	public String getRegionId() {
		return regionId;
	}
	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}
	public String getNetTerminal() {
		return netTerminal;
	}
	public void setNetTerminal(String netTerminal) {
		this.netTerminal = netTerminal;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getUserLevel() {
		return userLevel;
	}
	public void setUserLevel(String userLevel) {
		this.userLevel = userLevel;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPostcode() {
		return postcode;
	}
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	public String getCertType() {
		return certType;
	}
	public void setCertType(String certType) {
		this.certType = certType;
	}
	public String getCertNo() {
		return certNo;
	}
	public void setCertNo(String certNo) {
		this.certNo = certNo;
	}
	public String getFreezeDate() {
		return freezeDate;
	}
	public void setFreezeDate(String freezeDate) {
		this.freezeDate = freezeDate;
	}
	public String getFailNum() {
		return failNum;
	}
	public void setFailNum(String failNum) {
		this.failNum = failNum;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getLastModiTime() {
		return lastModiTime;
	}
	public void setLastModiTime(String lastModiTime) {
		this.lastModiTime = lastModiTime;
	}
	public String getLastModiUserId() {
		return lastModiUserId;
	}
	public void setLastModiUserId(String lastModiUserId) {
		this.lastModiUserId = lastModiUserId;
	}
	public String getPrivilegeAll() {
		return privilegeAll;
	}
	public void setPrivilegeAll(String privilegeAll) {
		this.privilegeAll = privilegeAll;
	}
	public String getPrivilegeSelf() {
		return privilegeSelf;
	}
	public void setPrivilegeSelf(String privilegeSelf) {
		this.privilegeSelf = privilegeSelf;
	}
	public String getPrivilegeOther() {
		return privilegeOther;
	}
	public void setPrivilegeOther(String privilegeOther) {
		this.privilegeOther = privilegeOther;
	}
	public String getUserCaregory() {
		return userCaregory;
	}
	public void setUserCaregory(String userCaregory) {
		this.userCaregory = userCaregory;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getUserDefaultRole() {
		return userDefaultRole;
	}
	public void setUserDefaultRole(String userDefaultRole) {
		this.userDefaultRole = userDefaultRole;
	}
	
	public String getLstModPwdTime() {
		return lstModPwdTime;
	}
	public void setLstModPwdTime(String lstModPwdTime) {
		this.lstModPwdTime = lstModPwdTime;
	}
	public String getPwdIsReseted() {
		return pwdIsReseted;
	}
	public void setPwdIsReseted(String pwdIsReseted) {
		this.pwdIsReseted = pwdIsReseted;
	}
	
	public String toString() {
			StringBuilder sb = new StringBuilder();
			sb.append("id=");
			sb.append(id);
			sb.append("password=");
			sb.append(password);
			sb.append("branchId=");
			sb.append(branchId);
			sb.append("branchLevel=");
			sb.append(branchLevel);
			sb.append("regionId=");
			sb.append(regionId);
			sb.append("netTerminal=");
			sb.append(netTerminal);
			sb.append("status=");
			sb.append(status);
			sb.append("userLevel=");
			sb.append(userLevel);
			sb.append("phoneNo=");
			sb.append(phoneNo);
			sb.append("email=");
			sb.append(email);
			sb.append("postcode=");
			sb.append(postcode);
			sb.append("certType=");
			sb.append(certType);
			sb.append("certNo=");
			sb.append(certNo);
			sb.append("freezeDate=");
			sb.append(freezeDate);
			sb.append("failNum=");
			sb.append(failNum);
			sb.append("mobile=");
			sb.append(mobile);
			sb.append("lastModiTime");
			sb.append(lastModiTime);
			sb.append("lastModiUserId=");
			sb.append(lastModiUserId);
			sb.append("privilegeAll=");
			sb.append(privilegeAll);
			sb.append("privilegeSelf=");
			sb.append(privilegeSelf);
			sb.append("privilegeOther=");
			sb.append(privilegeOther);
			sb.append("userCaregory=");
			sb.append(userCaregory);
			sb.append("name=");
			sb.append(name);
			sb.append("description=");
			sb.append(description);
			sb.append("address=");
			sb.append(address);
			sb.append("branchName=");
			sb.append(branchName);
			sb.append("userDefaultRole=");
			sb.append(userDefaultRole);
			
			sb.append("lstModPwdTime=");
			sb.append(lstModPwdTime);
			sb.append("pwdIsReseted=");
			sb.append(pwdIsReseted);
			return sb.toString();
	 }
}
